<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class UpdateUserForbiddenWithFiled extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('user_forbidden', function (Blueprint $table) {
            $table->unsignedTinyInteger('reason_type')->default(0)->comment('禁言类型');
            $table->string('reason', 100)->default('')->nullable()->comment('理由');
            $table->unsignedTinyInteger('op_admin_id')->default(0)->comment('操作账号ID');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('', function (Blueprint $table) {
            //
        });
    }
}
